const messageReducer = (state = [], action) => {
	switch (action.type) {
		case "PUSH_MSG":
			return [...state, {
				info: action.msg,
				id: action.id,
				flag: action.flag
			}]
		case "SHIFT_MSG":
			return [...action.msgQueue]
		default:
			return state
	}
}


export default messageReducer